<template>
    <div class="lk-dialog">
        <div class="top fcb">
            <div class="title" v-text="title">

            </div>
            <div class="close fcc cur animation" @click="$emit('clk')">
                <img class="img" src="./close.svg">
            </div>
        </div>
        <slot />
    </div>
</template>

<script>
export default {
    name: 'lk-dialog',
    props: {
        title: {
            default: ''
        }
    },
    data() {
        return {
        }
    },
    created() {

    },
    methods: {

    }
}
</script>

<style scoped>
    .lk-dialog {
        position: fixed;
        z-index: 500;
        top: 40%;
        left: 50%;
        width: 20%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 10px #343946;
        box-sizing: border-box;
        border-radius: 4px;
        padding: 10px 15px 15px;
        background-color: #202437;
    }
    .top {
    }
    .close {
        width: 40px;
        height: 40px;
    }
    .close:hover {
        transform: rotate(90deg);
    }
    .title {
        line-height: 40px;
        font-size: 24px;
        color: var(--clr0);
    }
    .img {
        width: 50%;
    }
</style>